package com.muyu.danmo.mapper;

import com.muyu.danmo.domain.DanmoFamous;
import com.muyu.danmo.domain.DanmoFamousCard;
import com.muyu.danmo.req.DanmoSelectFamousCarReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 名帖字库Mapper接口
 *
 * @author yangle
 * @date 2024-09-23
 */
public interface DanmoFamousCardMapper
{
    /**
     * 查询名帖字库
     *
     * @param id 名帖字库主键
     * @return 名帖字库
     */
    public DanmoFamousCard selectDanmoFamousCardById(Long id);

    /**
     * 查询名帖字库列表
     *
     * @param danmoFamousCard 名帖字库
     * @return 名帖字库集合
     */
    public List<DanmoFamousCard> selectDanmoFamousCardList(DanmoFamousCard danmoFamousCard);

    /**
     * 新增名帖字库
     *
     * @param danmoFamousCard 名帖字库
     * @return 结果
     */
    public int insertDanmoFamousCard(DanmoFamousCard danmoFamousCard);

    /**
     * 修改名帖字库
     *
     * @param danmoFamousCard 名帖字库
     * @return 结果
     */
    public int updateDanmoFamousCard(DanmoFamousCard danmoFamousCard);

    /**
     * 删除名帖字库
     *
     * @param id 名帖字库主键
     * @return 结果
     */
    public int deleteDanmoFamousCardById(Long id);

    /**
     * 批量删除名帖字库
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDanmoFamousCardByIds(Long[] ids);

    List<DanmoFamousCard> selectFamousName(@Param("author") String author, @Param("workName") String workName);

    List<DanmoFamous> selectFamousPicture(DanmoSelectFamousCarReq danmoSelectFamousCarReq);
}
